﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace QRCodePass.Core.Models
{
    /// <summary>
    /// 流程实体
    /// </summary>
    public class Process
    {
        /// <summary>
        /// ID不允许自增
        /// </summary>
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        [Display(Name = "流程编号")]
        public int Id { get; set; }

        [Display(Name = "流程名称")]
        public string ProcName { get; set; }

        [Display(Name = "描述")]
        public string Description { get; set; }

        [Display(Name = "前置任务")]
        public int PreTask { get; set; }

        [Display(Name = "报到点")]
        public int BuildId { get; set; }

        public virtual ICollection<DepartProc> Departments { get; set; }
        public virtual Build Builds { get; set; }
        public virtual ICollection<StudentProcess> StudentProcesses { get; set; }

    }
}
